<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>华泰信息化管理系统</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<#include "public/css.ftl">

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<#include "public/header.ftl">
<#include "public/aside.ftl">
    <div class="content-wrapper">
        <#include "public/content-header.ftl">
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <a class="btn btn-app " onclick="showAssetAdd()">
                                <i class="fa fa-plus"></i> 新增
                            </a>
                            <a class="btn btn-app " id="adjustBtn" onclick="showAssetBorrow()">
                                <i class="fa fa-exchange"></i> 发放
                            </a>
                            <a class="btn btn-app " id="returnBtn" onclick="showAssetRevert()">
                                <i class="fa fa-sign-in"></i> 归还
                            </a>
                            <a class="btn btn-app " id="modifyBtn" onclick="showAssetModify()">
                                <i class="fa fa-edit"></i> 修改
                            </a>
                            <a class="btn btn-app " id="deleteBtn" onclick="showAssetDelete()">
                                <i class="fa fa-trash-o"></i> 删除
                            </a>
                            <a class="btn btn-app " id="deleteBtn" onclick="showAssetDiscarde()">
                                <i class="fa fa-trash-o"></i> 报废
                            </a>
                        </div>
                        <div class="box-body">
                            <table id="assetTable" data-toggle="table" data-url="/asset/list" data-search="true"  data-pagination="true" data-sort-name="conId" data-sort-order="desc">
                                <thead>
                                <tr>
                                    <th data-radio="true" data-click-to-select="true"></th>
                                    <th data-field="oaId" data-sortable="true" data-formatter="oaIdFormatter">资产编号</th>
                                    <th data-field="assetClass" data-sortable="true">资产类型</th>
                                    <th data-field="sn" data-sortable="true">SN序列号</th>
                                    <th data-field="brand" data-sortable="true">品牌</th>
                                    <th data-field="version" data-sortable="true">型号</th>
                                    <th data-field="status" data-sortable="true" data-formatter="statusFormatter">状态</th>
                                    <th data-field="ownerName" data-sortable="true" data-formatter="userFormatter">监护人</th>
                                    <th data-field="userName" data-sortable="true" data-formatter="userFormatter">使用人</th>
                                    <th data-field="acceptDate" data-sortable="true"   >验收日期</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <#include "public/footer.ftl" >
    <div class="control-sidebar-bg"></div>
</div>
<div class="modal fade " id="dangerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body" >
                <p id="dangerModalMsgP">&nbsp; </p>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="dangerId"/>
                <button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
                <button id="dangerConfirmBtn" type="button" class="btn btn-primary" >确认</button>
            </div>
        </div>
    </div>
</div>
<#include "public/js.ftl" >
<#include "asset/assetadd.ftl" >
<#include "asset/assetadjust.ftl" >
<script src="js/asset/assetlist.js"></script>
<script src="js/asset/assetlist.async.js" async="true"></script>
</body>
</html>
